Effects of fatigue on safety